package mx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import mx.dao.ToiletDao;
import mx.entity.Toilet;
import mx.service.ToiletService;

/**
 * 厕所实现类
 * 
 * @author Gray-bird
 * 
 */

@Service
public class ToiletServiceImpl implements ToiletService {
	@Resource
	private ToiletDao toiletDao;

	public List<Toilet> list(Map<String, Object> map) {
		return toiletDao.list(map);
	}

	public Toilet find(Toilet toilet) {
		return toiletDao.find(toilet);
	}

	public Long getTotal(Map<String, Object> map) {
		return toiletDao.getTotal(map);
	}

	public int update(Toilet toilet) {
		return toiletDao.update(toilet);
	}

	public int delete(Integer id) {
		return toiletDao.delete(id);
	}

	public int add(Toilet toilet) {
		return toiletDao.add(toilet);
	}

}
